package com.xxx.shetuan3.service;

import com.xxx.shetuan3.pojo.Organization;
import com.xxx.shetuan3.pojo.StudentAndOrganization;
import com.xxx.shetuan3.pojo.User;


import java.util.List;

public interface StudentAndOrganizationService {
    /**
     * 加入社团
     * @param studentAndOrganization
     * @return
     */
    public boolean saveStudentAndOrganization(StudentAndOrganization studentAndOrganization);

    /**
     * 更新申请状态，
     * @param studentAndOrganizationId
     * @return
     */
    public boolean updateStudentAndOrganizationStateByStudentAndOrganizationId(String state, Integer studentAndOrganizationId);

    /**
     * 删除社团关系
     * @param studentAndOrganizationId
     * @return
     */
    public boolean deleteStudentAndOrganizationById(Integer studentAndOrganizationId);

    /**
     * 查找已报名未处理的学生
     * @param organizationId
     * @return
     */
    public List<StudentAndOrganization> findUnacceptedStudent(Integer organizationId,Integer start,Integer size);

    /**
     * 查找该社团的所有成员
     * @param
     * @return
     */
    public List<StudentAndOrganization> findStudents(Integer organizationId,Integer start,Integer size);

    /**
     * 查找已报名未通过的社团
     * @param studentId
     * @return
     */
    public List<StudentAndOrganization> findUnacceptedOrganizations(Integer studentId,Integer start,Integer size);

    /**
     * 查找已加入的社团
     * @param studentId
     * @return
     */

    public List<StudentAndOrganization> findOrganizations(Integer studentId,Integer start,Integer size);
    /**
     * 根据学生id与社团id查询
     */
    public StudentAndOrganization findStudentAndOrganizationByStudentIdAndOrganizationId(Integer studentId,Integer organizationId);

}
